home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Samples / C++ / Direct3D / StateManager / EffectStateManager.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-27  |  1.2 KB  |  30 lines

  1. //--------------------------------------------------------------------------------------
  2. // File: EffectStateManager.h
  3. //
  4. // Base implementation of a custom ID3DXEffectStateManager interface
  5. //
  6. // Copyright (c) Microsoft Corporation. All rights reserved.
  7. //--------------------------------------------------------------------------------------
  8. #pragma once
  9. #ifndef _EFFECTSTATEMANAGER_H_
  10. #define _EFFECTSTATEMANAGER_H_
  11.  
  12.  
  13.  
  14. //--------------------------------------------------------------------------------------
  15. // Base implementation of a custom ID3DXEffectStateManager interface
  16. //--------------------------------------------------------------------------------------
  17. class CStateManagerInterface : public ID3DXEffectStateManager
  18. {
  19. public:
  20.     
  21.     virtual ~CStateManagerInterface() {};       // virtual destructor, for cleanup purposes
  22.     virtual void DirtyCachedValues() = 0;       // Cause any cached state change values to be invalid
  23.     virtual LPCWSTR EndFrameStats() = 0;        // Called once per frame retrieve statistics
  24.     
  25.     // Create a state manager interface for the device
  26.     static CStateManagerInterface*              
  27.         CStateManagerInterface::Create( LPDIRECT3DDEVICE9 pDevice );
  28. };
  29.  
  30. #endif //_EFFECTSTATEMANAGER_H_